package com.lpw.dbvideo.user.service;

import com.lpw.dbvideo.config.WeChatConfig;
import com.lpw.dbvideo.user.dao.UserMapper;
import com.lpw.dbvideo.user.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceimpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int save(User user) {
        return userMapper.save(user);
    }

    @Override
    public User findByOpenId(String openId) {
        return userMapper.findByOpenId(openId);
    }
}
